package RMISnake;

import java.io.Serializable;
import java.util.LinkedList;

public class Snake implements Serializable {
	private int speed;
	private LinkedList snake = new LinkedList();

	public Snake(int index) {
		super();
		this.snake.addLast(new Node(10 * index, 10 * index));
		this.snake.addLast(new Node(10 * index - 10, 10 * index - 10));
	}

	public int getSpeed() {
		return speed;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}

	public LinkedList getSnakes() {
		return snake;
	}

	public void setSnakes(LinkedList snake) {
		this.snake = snake;
	}
}
